import app from '@system.app';
import router from '@system.router';
export default {
    //各个模块的链接地址
    data: {
        title: 'World',
        learn: {
            learn_monday: {
                state: '周一', uri: 'pages/monday/monday', ico:'../../common/task.png'
            },
            learn_tuesday: {
                state: '周二', uri: 'pages/tuesday/tuesday', ico:'../../common/task.png'
            },
            learn_wednesday: {
                state: '周三', uri: 'pages/wednesday/wednesday', ico:'../../common/task.png'
            },
            learn_thursday: {
                state: '周四', uri: 'pages/thursday/thursday', ico:'../../common/task.png'
            },
            learn_friday: {
                state: '周五', uri: 'pages/friday/friday', ico:'../../common/task.png'
            },
            learn_saturday: {
                state: '周六', uri: 'pages/saturday/saturday', ico:'../../common/task.png'
            },
            learn_weekday: {
                state: '周日', uri: 'pages/weekday/weekday', ico:'../../common/task.png'
            },
        }
    },
    //初始化
    onInit() {
        this.title = this.$t('strings.world');
    },
    //退出界面
    handleExist() {
        app.terminate();
    },
    //跳转界面
    route(e){
        router.replace({
            uri: e.uri
        });
    }
}
